package com.itheima.TestAnimal;

public class Tiger extends Carnivore {
    @Override
    void eat() {
        System.out.println("年龄为 "+getAge()+"的"+getNumOfLegs()+"条腿的老虎在吃羊");
    }
}
